import * as SysApi from '../sys.api';

export const register = () => {
    SysApi.register('user.current', () => {
        return SysApi.ajaxGet(SysApi.apiUrl('/user/current'));
    });

    SysApi.register('user.isAdmin', () => {
        return SysApi.ajaxGet(SysApi.apiUrl('/user/is-admin'));
    });
};